package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by ccm on 2016/11/15 11:44
 */

public class FreeListBean {


    /**
     * msg : 查询成功
     * code : 200
     * freeRegionDTO : {"onlineDate":null,"rule":"哈哈哈","goUrl":"www.baidu.com","pic":"http://image.joplus.cn/2016-11-23/2016112306201484608563.png?e=1480156064&token=aBcc3cHlCNiHpGi-QCjGrwLt_P8iLyvWiVlFN1Vp:aQLqtFqPc7xc8Rg76ITzrwZq4YE=","freeId":"free1479896418733Wg5v","createDate":null,"status":"1","bookCount":0,"count":0,"areaId":"area1476075851393EjKc","freeShops":[{"id":39,"memberId":"mem1465898689736dgPt","category":"data57","freeShopId":"freeshop1479896542321jUp4","shopAddress":"大师小宴地址","title":"大师小宴标题","shopName":"大师小宴","chargeOriginal":99,"orderMoney":123,"priceUnit":"100","stock":"6","buyLimit":"2","needAddress":"1","timeLabel":"2016-11-26 00:00","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306215255105865.jpg","remindMsg":"你饿了吗？","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"rest1459688963223RA4N","name":"大师小宴商品","timeType":"1"},{"id":40,"memberId":"mem1465898689736dgPt","category":"data57","freeShopId":"freeshop1479896640444sBrV","shopAddress":"梁伯伯海派私房小馆地址","title":"梁伯伯标题","shopName":"梁伯伯海派私房小馆","chargeOriginal":88,"orderMoney":200,"priceUnit":"199","stock":"67","buyLimit":"2","needAddress":"1","timeLabel":"2016-11-25@@2016-11-30@@00:00-16:35@@周四@@周五@@周三","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306234433805578.png","remindMsg":"哈哈哈","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"rest1459681300977drix","name":"梁伯伯海派私房小馆商品","timeType":"2"},{"id":41,"memberId":"mem1461725756539VxwO","category":"data56","freeShopId":"freeshop1479896746583RooP","shopAddress":"张学友地址","title":"张学友标题","shopName":"2016张学友上海演唱会[A CLASSIC TOUR 学友.经典]创造永恒经典","chargeOriginal":1781,"orderMoney":200,"priceUnit":"199","stock":"78","buyLimit":"9","needAddress":"1","timeLabel":"2016-11-25@@2016-11-29@@00:35-16:50@@周六@@周日@@周二","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306253299307514.jpg","remindMsg":"hhhhh","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"event1468330598928dGdv","name":"张学友名称","timeType":"2"},{"id":42,"memberId":"mem1461725775824K0xB","category":"data58","freeShopId":"freeshop14798968235740gWi","shopAddress":"按摩地址","title":"按摩标题","shopName":"蘭 泰式古法按摩","chargeOriginal":56,"orderMoney":123,"priceUnit":"56","stock":"78","buyLimit":"5","needAddress":"1","timeLabel":"2016-11-26 00:00","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306264879701511.jpg","remindMsg":"jjjjjjj","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"life1461070023607L7Md","name":"按摩名称","timeType":"1"}]}
     */

    private String message;
    private String code;
private  DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    /**
     * onlineDate : null
     * rule : 哈哈哈
     * goUrl : www.baidu.com
     * pic : http://image.joplus.cn/2016-11-23/2016112306201484608563.png?e=1480156064&token=aBcc3cHlCNiHpGi-QCjGrwLt_P8iLyvWiVlFN1Vp:aQLqtFqPc7xc8Rg76ITzrwZq4YE=
     * freeId : free1479896418733Wg5v
     * createDate : null
     * status : 1
     * bookCount : 0
     * count : 0
     * areaId : area1476075851393EjKc
     * freeShops : [{"id":39,"memberId":"mem1465898689736dgPt","category":"data57","freeShopId":"freeshop1479896542321jUp4","shopAddress":"大师小宴地址","title":"大师小宴标题","shopName":"大师小宴","chargeOriginal":99,"orderMoney":123,"priceUnit":"100","stock":"6","buyLimit":"2","needAddress":"1","timeLabel":"2016-11-26 00:00","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306215255105865.jpg","remindMsg":"你饿了吗？","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"rest1459688963223RA4N","name":"大师小宴商品","timeType":"1"},{"id":40,"memberId":"mem1465898689736dgPt","category":"data57","freeShopId":"freeshop1479896640444sBrV","shopAddress":"梁伯伯海派私房小馆地址","title":"梁伯伯标题","shopName":"梁伯伯海派私房小馆","chargeOriginal":88,"orderMoney":200,"priceUnit":"199","stock":"67","buyLimit":"2","needAddress":"1","timeLabel":"2016-11-25@@2016-11-30@@00:00-16:35@@周四@@周五@@周三","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306234433805578.png","remindMsg":"哈哈哈","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"rest1459681300977drix","name":"梁伯伯海派私房小馆商品","timeType":"2"},{"id":41,"memberId":"mem1461725756539VxwO","category":"data56","freeShopId":"freeshop1479896746583RooP","shopAddress":"张学友地址","title":"张学友标题","shopName":"2016张学友上海演唱会[A CLASSIC TOUR 学友.经典]创造永恒经典","chargeOriginal":1781,"orderMoney":200,"priceUnit":"199","stock":"78","buyLimit":"9","needAddress":"1","timeLabel":"2016-11-25@@2016-11-29@@00:35-16:50@@周六@@周日@@周二","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306253299307514.jpg","remindMsg":"hhhhh","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"event1468330598928dGdv","name":"张学友名称","timeType":"2"},{"id":42,"memberId":"mem1461725775824K0xB","category":"data58","freeShopId":"freeshop14798968235740gWi","shopAddress":"按摩地址","title":"按摩标题","shopName":"蘭 泰式古法按摩","chargeOriginal":56,"orderMoney":123,"priceUnit":"56","stock":"78","buyLimit":"5","needAddress":"1","timeLabel":"2016-11-26 00:00","goUrl":"www.baidu.com","pic":"2016-11-23/2016112306264879701511.jpg","remindMsg":"jjjjjjj","areaId":"area1476075851393EjKc","freeId":"free1479896418733Wg5v","commonId":"life1461070023607L7Md","name":"按摩名称","timeType":"1"}]
     */
    public static class DataBean {
        private FreeRegionDTOBean freeRegionDTO;

        public FreeRegionDTOBean getFreeRegionDTO() {
            return freeRegionDTO;
        }

        public void setFreeRegionDTO(FreeRegionDTOBean freeRegionDTO) {
            this.freeRegionDTO = freeRegionDTO;
        }

        public static class FreeRegionDTOBean {
            private Object onlineDate;
            private String rule;
            private String goUrl;
            private String pic;
            private String freeId;
            private Object createDate;
            private String status;
            private int bookCount;
            private int count;
            private String areaId;
            /**
             * id : 39
             * memberId : mem1465898689736dgPt
             * category : data57
             * freeShopId : freeshop1479896542321jUp4
             * shopAddress : 大师小宴地址
             * title : 大师小宴标题
             * shopName : 大师小宴
             * chargeOriginal : 99
             * orderMoney : 123
             * priceUnit : 100
             * stock : 6
             * buyLimit : 2
             * needAddress : 1
             * timeLabel : 2016-11-26 00:00
             * goUrl : www.baidu.com
             * pic : 2016-11-23/2016112306215255105865.jpg
             * remindMsg : 你饿了吗？
             * areaId : area1476075851393EjKc
             * freeId : free1479896418733Wg5v
             * commonId : rest1459688963223RA4N
             * name : 大师小宴商品
             * timeType : 1
             */

            private List<FreeShopsBean> freeShops;

            public Object getOnlineDate() {
                return onlineDate;
            }

            public void setOnlineDate(Object onlineDate) {
                this.onlineDate = onlineDate;
            }

            public String getRule() {
                return rule;
            }

            public void setRule(String rule) {
                this.rule = rule;
            }

            public String getGoUrl() {
                return goUrl;
            }

            public void setGoUrl(String goUrl) {
                this.goUrl = goUrl;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getFreeId() {
                return freeId;
            }

            public void setFreeId(String freeId) {
                this.freeId = freeId;
            }

            public Object getCreateDate() {
                return createDate;
            }

            public void setCreateDate(Object createDate) {
                this.createDate = createDate;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public int getBookCount() {
                return bookCount;
            }

            public void setBookCount(int bookCount) {
                this.bookCount = bookCount;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public String getAreaId() {
                return areaId;
            }

            public void setAreaId(String areaId) {
                this.areaId = areaId;
            }

            public List<FreeShopsBean> getFreeShops() {
                return freeShops;
            }

            public void setFreeShops(List<FreeShopsBean> freeShops) {
                this.freeShops = freeShops;
            }

            public static class FreeShopsBean implements Parcelable {
                private int id;
                private String memberId;
                private String category;
                private String freeShopId;
                private String shopAddress;
                private String title;
                private String shopName;
                private int chargeOriginal;
                private String orderMoney;
                private String priceUnit;
                private String stock;
                private String buyLimit;
                private String needAddress;
                private String timeLabel;
                private String goUrl;
                private String pic;
                private String remindMsg;
                private String areaId;
                private String freeId;
                private String commonId;
                private String name;
                private String timeType;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getMemberId() {

                    return memberId;
                }

                public void setMemberId(String memberId) {
                    this.memberId = memberId;
                }

                public String getCategory() {
                    return category;
                }

                public void setCategory(String category) {
                    this.category = category;
                }

                public String getFreeShopId() {
                    return freeShopId;
                }

                public void setFreeShopId(String freeShopId) {
                    this.freeShopId = freeShopId;
                }

                public String getShopAddress() {
                    return shopAddress;
                }

                public void setShopAddress(String shopAddress) {
                    this.shopAddress = shopAddress;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getShopName() {
                    return shopName;
                }

                public void setShopName(String shopName) {
                    this.shopName = shopName;
                }

                public int getChargeOriginal() {
                    return chargeOriginal;
                }

                public void setChargeOriginal(int chargeOriginal) {
                    this.chargeOriginal = chargeOriginal;
                }

                public String getOrderMoney() {
                    return orderMoney;
                }

                public void setOrderMoney(String orderMoney) {
                    this.orderMoney = orderMoney;
                }

                public String getPriceUnit() {
                    return priceUnit;
                }

                public void setPriceUnit(String priceUnit) {
                    this.priceUnit = priceUnit;
                }

                public String getStock() {
                    return stock;
                }

                public void setStock(String stock) {
                    this.stock = stock;
                }

                public String getBuyLimit() {
                    return buyLimit;
                }

                public void setBuyLimit(String buyLimit) {
                    this.buyLimit = buyLimit;
                }

                public String getNeedAddress() {
                    return needAddress;
                }

                public void setNeedAddress(String needAddress) {
                    this.needAddress = needAddress;
                }

                public String getTimeLabel() {
                    return timeLabel;
                }

                public void setTimeLabel(String timeLabel) {
                    this.timeLabel = timeLabel;
                }

                public String getGoUrl() {
                    return goUrl;
                }

                public void setGoUrl(String goUrl) {
                    this.goUrl = goUrl;
                }

                public String getPic() {
                    return pic;
                }

                public void setPic(String pic) {
                    this.pic = pic;
                }

                public String getRemindMsg() {
                    return remindMsg;
                }

                public void setRemindMsg(String remindMsg) {
                    this.remindMsg = remindMsg;
                }

                public String getAreaId() {
                    return areaId;
                }

                public void setAreaId(String areaId) {
                    this.areaId = areaId;
                }

                public String getFreeId() {
                    return freeId;
                }

                public void setFreeId(String freeId) {
                    this.freeId = freeId;
                }

                public String getCommonId() {
                    return commonId;
                }

                public void setCommonId(String commonId) {
                    this.commonId = commonId;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getTimeType() {
                    return timeType;
                }

                public void setTimeType(String timeType) {
                    this.timeType = timeType;
                }

                @Override
                public String toString() {
                    return "FreeShopsBean{" +
                            "id=" + id +
                            ", memberId='" + memberId + '\'' +
                            ", category='" + category + '\'' +
                            ", freeShopId='" + freeShopId + '\'' +
                            ", shopAddress='" + shopAddress + '\'' +
                            ", title='" + title + '\'' +
                            ", shopName='" + shopName + '\'' +
                            ", chargeOriginal=" + chargeOriginal +
                            ", orderMoney='" + orderMoney + '\'' +
                            ", priceUnit='" + priceUnit + '\'' +
                            ", stock='" + stock + '\'' +
                            ", buyLimit='" + buyLimit + '\'' +
                            ", needAddress='" + needAddress + '\'' +
                            ", timeLabel='" + timeLabel + '\'' +
                            ", goUrl='" + goUrl + '\'' +
                            ", pic='" + pic + '\'' +
                            ", remindMsg='" + remindMsg + '\'' +
                            ", areaId='" + areaId + '\'' +
                            ", freeId='" + freeId + '\'' +
                            ", commonId='" + commonId + '\'' +
                            ", name='" + name + '\'' +
                            ", timeType='" + timeType + '\'' +
                            '}';
                }

                @Override
                public int describeContents() {
                    return 0;
                }

                @Override
                public void writeToParcel(Parcel dest, int flags) {
                    dest.writeInt(this.id);
                    dest.writeString(this.memberId);
                    dest.writeString(this.category);
                    dest.writeString(this.freeShopId);
                    dest.writeString(this.shopAddress);
                    dest.writeString(this.title);
                    dest.writeString(this.shopName);
                    dest.writeInt(this.chargeOriginal);
                    dest.writeString(this.orderMoney);
                    dest.writeString(this.priceUnit);
                    dest.writeString(this.stock);
                    dest.writeString(this.buyLimit);
                    dest.writeString(this.needAddress);
                    dest.writeString(this.timeLabel);
                    dest.writeString(this.goUrl);
                    dest.writeString(this.pic);
                    dest.writeString(this.remindMsg);
                    dest.writeString(this.areaId);
                    dest.writeString(this.freeId);
                    dest.writeString(this.commonId);
                    dest.writeString(this.name);
                    dest.writeString(this.timeType);
                }

                public FreeShopsBean() {
                }

                protected FreeShopsBean(Parcel in) {
                    this.id = in.readInt();
                    this.memberId = in.readString();
                    this.category = in.readString();
                    this.freeShopId = in.readString();
                    this.shopAddress = in.readString();
                    this.title = in.readString();
                    this.shopName = in.readString();
                    this.chargeOriginal = in.readInt();
                    this.orderMoney = in.readString();
                    this.priceUnit = in.readString();
                    this.stock = in.readString();
                    this.buyLimit = in.readString();
                    this.needAddress = in.readString();
                    this.timeLabel = in.readString();
                    this.goUrl = in.readString();
                    this.pic = in.readString();
                    this.remindMsg = in.readString();
                    this.areaId = in.readString();
                    this.freeId = in.readString();
                    this.commonId = in.readString();
                    this.name = in.readString();
                    this.timeType = in.readString();
                }

                public static final Parcelable.Creator<FreeShopsBean> CREATOR = new Parcelable.Creator<FreeShopsBean>() {
                    @Override
                    public FreeShopsBean createFromParcel(Parcel source) {
                        return new FreeShopsBean(source);
                    }

                    @Override
                    public FreeShopsBean[] newArray(int size) {
                        return new FreeShopsBean[size];
                    }
                };
            }
        }
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


}
